Ext.define("App.view.wish.Splash", {
    extend: "Ext.Container",
    id: "splashScreen",
	xtype: 'splash',
    requires: [ "App.view.wish.Settings"],
    config: {
    	title: '首页',
		autoDestroy: false,
        layout: {
            type: "card",
            animation: {
                type: 'slide'
            }
        },
        items: [       
        {
            xclass: "App.view.wish.Settings"
        }]
    },
    animateTo: function(dir) {
        Ext.getCmp('viewport').getLayout().setAnimation({
            duration: 300,
            easing: 'ease-in-out',
            type: 'flip',
            direction: dir
        });
    }
});